import keyboard
import mouse
import time
import re
from random import randrange
from playsound import playsound
print("Choose location of mouse pressing every 5 minutes")
print(".")
print(".")
print(".")
pxx = 1
ever = 1
name = input("PRESS ENTER WHEN READY")
posmouse = mouse.get_position()
print(posmouse)
saucex, saucey = [int(s) for s in re.findall(r'\b\d+\b', str(posmouse))]
print(saucex)
print(saucey)
print("Begin?")
name = input("ENTER")
while ever < 2:
	mouse.move(saucex, saucey, absolute=True, duration=0.01)
	mouse.click(button='left')
	playsound('D:/rakkiz.mp3')
	time.sleep(300)